﻿using UnityEngine;
using System.Collections;


public class LoginUIHandler : WinHandler< LoginUIHandler >
{
	
	void Awake ()
	{
		mInstance = this;
	}

	private LoginUIComponent uiComponent;
	
	public override void onRelease()
	{
		
	}
	public override void onInit()
	{
		uiComponent = uiObject.GetComponentInChildren< LoginUIComponent >();
	}
	public override void onOpen()
	{
		base.onOpen ();
		uiComponent.wait = false;
	}
	public override void onClose()
	{
		uiComponent.wait = false;
	}

	public void enabelUI( bool b )
	{
		uiComponent.wait = !b;
	}
	
	// Use this for initialization
	void Start () 
	{
		//Show();
	}


	// Update is called once per frame
	void Update () 
	{
		
	}
}
